package com.bigknow.appstore.web.console.app;

import com.bigknow.appstore.web.base.entity.User;
import com.bigknow.appstore.web.framework.entity.BaseEntity;
import com.bigknow.appstore.web.framework.entity.IEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Reference;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 李科风 on 2016-09-27.
 */
@Entity("subscriber")
public class Subscriber extends BaseEntity implements IEntity {

    @Reference
    private User user;

    @Reference
    private Application application;

    private String subscribeTime;

    private SubscribeState state;

    private List<String> dataNodeIds = new ArrayList<String>();

    private String replyDesc;

    private String replyUserId;

    private String replyTime;

    public String getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(String replyUserId) {
        this.replyUserId = replyUserId;
    }

    public String getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(String replyTime) {
        this.replyTime = replyTime;
    }

    public String getReplyDesc() {
        return replyDesc;
    }

    public void setReplyDesc(String replyDesc) {
        this.replyDesc = replyDesc;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Application getApplication() {
        return application;
    }

    public void setApplication(Application application) {
        this.application = application;
    }

    public String getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(String subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public List<String> getDataNodeIds() {
        return dataNodeIds;
    }

    public void setDataNodeIds(List<String> dataNodeIds) {
        this.dataNodeIds = dataNodeIds;
    }

    public SubscribeState getState() {
        return state;
    }

    public void setState(SubscribeState state) {
        this.state = state;
    }
}
